package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author default
 * @version 1.0.0
 * @ClassName TobSaleOrderUpdateRequest.java
 * @Description
 * @createTime 2022年11月16日 18:05:00
 */
@Data
public class TobSaleOrderUpdateRequest {

    @NotNull
    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "枚举 订单状态:1-草稿(s1)|2-审批中(s2)|3-待物流运输(s3)|4-待结算(s4)|5-完成(s5)")
    private Integer orderStatus;

    @Schema(description = "PO单号")
    private String poOrderNo;

    @Schema(description = "PR单号")
    private String prOrderNo;

    @Schema(description = "目的地")
    private String inSubWarehouseName;

    @Schema(description = "发货分仓编码")
    private String outSubWarehouseCode;

    @Schema(description = "发货分仓名称")
    private String outSubWarehouseName;

    @Schema(description = "订单来源")
    private String saleChannel;

    @Schema(description = "订单来源下级")
    private String saleSubChannel;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "商品数据")
    private List<TobSaleDetailOrderAddRequest> item;

    @NotNull(message = "币种不能为空")
    @Schema(description = "货币编码")
    private String currencyCode;

    @Schema(description = "货币名称", hidden = true)
    private String currencyName;


}
